// 人员统计字典
export function useCategory() {
  const category = ref([])
  const { getDictsByCategoryCode } = useDictStore()
  category.value = []
  const getCategory = async () => {
    if (isNilOrEmpty(category.value)) {
      category.value = await getDictsByCategoryCode('user-category')
    }
    return category.value
  }

  return { getCategory }
}
